import request from '../utils/request.js';
//购物车查询
export function getShopCarAll(data){
	return request({
		url:'/WX2ShopCarAll?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
//购物车批量删除
export function DeleteShopCarQuantity(data){
	return request({
		url:'/WXClearShopCarQuantity?grant_type=wechat_program',
		method:'POST',
		data,
	})
}

// 购物车商品查询
export function getWXShopCarQuantity(data){
	return request({
		url:'/WXShopCarQuantity?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
// 查询购物车有无相同商品
export function getWXCheckShopCarAction(data){
	return request({
		url:'/WXCheckShopCarAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
// 修改购物车商品数量
export function editWXEditShopCarQuantity(data){
	return request({
		url:'/WXEditShopCarQuantity?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
// 添加到购物车
export function setAsynChronousAdd(data){
	return request({
		url:'/setAsynChronousAdd?grant_type=wechat_program',
		method:'POST',
		data,
	})
}
//取分类专区的商品
export function GoodsIdAction(data){
	return request({
		url:'/WX2GoodsIdAction',
		method:'POST',
		data,
	})
}

//查询库存是否充足
export function getWX2CheckStockAction(data){
	return request({
		url:'/WX2CheckStockAction?grant_type=wechat_program',
		method:'POST',
		data,
	})
}

 